package com.fzshang.shopping.commen.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-08
 */
@ToString
@ApiModel(value="Good对象", description="商品")
public class Good extends Model<Good> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    @TableField("good_name")
    private String goodName;

    @ApiModelProperty(value = "商品价格")
    @TableField("good_price")
    private String goodPrice;

    @ApiModelProperty(value = "商品描述")
    @TableField("good_content")
    private String goodContent;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "商品分类id")
    @TableField("commodity_id")
    private Long commodityId;

    @ApiModelProperty(value = "分类id")
    @TableField("classification_id")
    private Long classificationId;

    @ApiModelProperty(value = "是否包邮 1是 2否")
    @TableField("free_shipping")
    private Integer freeShipping;

    @ApiModelProperty(value = "暂定单价")
    @TableField("provisional_price")
    private String provisionalPrice;

    @ApiModelProperty(value = "商品盈利")
    @TableField("profit")
    private String profit;

    @ApiModelProperty(value = "销售盈利")
    @TableField("sale_profit")
    private String saleProfit;

    @ApiModelProperty(value = "是否下架 1是 2否")
    @TableField("businesses")
    private Integer businesses;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "状态 1必推好货 2冰点秒杀")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "今日推荐 1是 0啥也不是")
    @TableField("recommend")
    private Integer recommend;

    @ApiModelProperty(value = "商品来源")
    @TableField("source")
    private String source;

    @ApiModelProperty(value = "商品来源连接")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "商品分类名称")
    @TableField(exist = false)
    private String commodityName;

    @ApiModelProperty(value = "分类名称")
    @TableField(exist = false)
    private String classificationName;

    @ApiModelProperty(value = "商品图片")
    @TableField(exist = false)
    private String goodUrl;

    @ApiModelProperty(value = "状态 1今日好货 2冰点秒杀")
    @TableField(exist = false)
    private Integer type;

    @TableField(exist = false)
    private String goodImage;

    @TableField(exist = false)
    private String goodDetails;

    @TableField(exist = false)
    private Long shoppingCarId;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Long getShoppingCarId() {
        return shoppingCarId;
    }

    public void setShoppingCarId(Long shoppingCarId) {
        this.shoppingCarId = shoppingCarId;
    }

    public String getGoodImage() {
        return goodImage;
    }

    public void setGoodImage(String goodImage) {
        this.goodImage = goodImage;
    }

    public String getGoodDetails() {
        return goodDetails;
    }

    public void setGoodDetails(String goodDetails) {
        this.goodDetails = goodDetails;
    }

    public String getSaleProfit() {
        return saleProfit;
    }

    public void setSaleProfit(String saleProfit) {
        this.saleProfit = saleProfit;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getFreeShipping() {
        return freeShipping;
    }

    public void setFreeShipping(Integer freeShipping) {
        this.freeShipping = freeShipping;
    }

    public String getProvisionalPrice() {
        return provisionalPrice;
    }

    public void setProvisionalPrice(String provisionalPrice) {
        this.provisionalPrice = provisionalPrice;
    }

    public String getProfit() {
        return profit;
    }

    public void setProfit(String profit) {
        this.profit = profit;
    }

    public Integer getBusinesses() {
        return businesses;
    }

    public void setBusinesses(Integer businesses) {
        this.businesses = businesses;
    }

    public String getGoodUrl() {
        return goodUrl;
    }

    public void setGoodUrl(String goodUrl) {
        this.goodUrl = goodUrl;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getClassificationName() {
        return classificationName;
    }

    public void setClassificationName(String classificationName) {
        this.classificationName = classificationName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }
    public String getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(String goodPrice) {
        this.goodPrice = goodPrice;
    }
    public String getGoodContent() {
        return goodContent;
    }

    public void setGoodContent(String goodContent) {
        this.goodContent = goodContent;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }
    public Long getClassificationId() {
        return classificationId;
    }

    public void setClassificationId(Long classificationId) {
        this.classificationId = classificationId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Good{" +
            "id=" + id +
            ", goodName=" + goodName +
            ", goodPrice=" + goodPrice +
            ", goodContent=" + goodContent +
            ", createTime=" + createTime +
            ", commodityId=" + commodityId +
            ", classificationId=" + classificationId +
        "}";
    }
}
